<!-- jQuery -->
<script src="__AdminLTE302__/plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="__AdminLTE302__/plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="__AdminLTE302__/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<!--<script src="__AdminLTE302__/plugins/chart.js/Chart.min.js"></script>-->
<!-- Sparkline -->
<!--<script src="__AdminLTE302__/plugins/sparklines/sparkline.js"></script>-->
<!-- JQVMap -->
<!--<script src="__AdminLTE302__/plugins/jqvmap/jquery.vmap.min.js"></script>-->
<!--<script src="__AdminLTE302__/plugins/jqvmap/maps/jquery.vmap.usa.js"></script>-->
<!-- jQuery Knob Chart -->
<script src="__AdminLTE302__/plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="__AdminLTE302__/plugins/moment/moment.min.js"></script>
<script src="__AdminLTE302__/plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="__AdminLTE302__/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<!--<script src="__AdminLTE302__/plugins/summernote/summernote-bs4.min.js"></script>-->
<!-- overlayScrollbars -->
<script src="__AdminLTE302__/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- Toastr -->
<script src="__AdminLTE302__/plugins/toastr/toastr.min.js"></script>
<!-- Select2 -->
<script src="__AdminLTE302__/plugins/select2/js/select2.full.min.js"></script>
<!-- AdminLTE App -->
<script src="__AdminLTE302__/dist/js/adminlte.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<!--<script src="__AdminLTE302__/dist/js/pages/dashboard.js"></script>-->
<!-- Layer  -->
<script src="__PUBLIC__/admin/layer/layer.js"></script>
<!-- system common.js -->
<script src="__PUBLIC__/admin/js/common.js"></script>
<script>
    $(function () {
        $(".doClear").on('click',function () {
            $.ajax({
                url:"{:url('admin/system/cleanCache')}",
                data:1,
                error:function () {

                },
                success:function ( data ) {
                    console.log(data);
                    if( data == true ){
                        alert("更新缓存成功");
                        window.location.reload();
                    }else{
                        alert("更新缓存失败");
                    }
                }
            });
        });
        fileImage();
        function fileImage() {
            var file = $("input[type='file']");
            var img = file.parents('.mailbox-attachment-info').siblings('.mailbox-attachment-icon').find("img");

            $(file).on("change",function (e) {
                var t = this.files.item(0);
                var url = window.URL.createObjectURL( t );
                $(img).attr("src",url);
            })
        }
    })
</script>